home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1999 #2
/
Amiga Plus CD - 1999 - No. 2.iso
/
System-Boost
/
Workbench
/
Archive
/
PPCxDMS
/
source.lha
/
src
/
getbits.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-02-28
|
285b
|
11 lines
extern ULONG mask_bits[], bitbuf;
extern UCHAR *indata, bitcount;
#define GETBITS(n) ((USHORT)(bitbuf >> (bitcount-(n))))
#define DROPBITS(n) {bitbuf &= mask_bits[bitcount-=(n)]; while (bitcount<16) {bitbuf = (bitbuf << 8) | *indata++; bitcount += 8;}}
void initbitbuf(UCHAR *);